package com.liu.service.impl;

import com.liu.bean.User;
import com.liu.mapper.UserMapper;
import com.liu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;


    @Override
    public int save(User user) {
        return userMapper.save(user);
    }

    @Override
    public User queryByUsername(String username) {
        return userMapper.queryByUsername(username);
    }
}
